#include<bits/stdc++.h>
using namespace std;

double f(double x){
	return 2*x*x*x-4*x*x+3*x-6;
}

int main(){
	double right=10,left=-10,middle=0; 
	while(fabs(right-left)>=1e-7){
		middle=(right+left)/2;
		if(f(right)*f(middle)>=0)
			right=middle;
		else
			left=middle; 
	}
	printf("root=%.6lf\n",middle);
}




